package com.hqyj.bigdata.hiveproject.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.hqyj.bigdata.hiveproject.entity.TopTenCatalogVideoInfo;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface TopTenCatalogVideoInfoMapper extends BaseMapper<TopTenCatalogVideoInfo> {


    @Select("select distinct (categoryId ) from TopTenCatalogVideoInfo group by categoryId")
    public List<String> queryCatalogList();

    @Select("select views from TopTenCatalogVideoInfo where categoryId = #{catalogId}")
    public List<Long> queryVideoViewsListByCatalogId(String catalogId);
}
